package com.web.sys.dao;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.web.sys.model.SysSource;

@Repository("sysSourceDao")
public class SysSourceDao extends BaseDao<SysSource> implements ISysSourceDao {

	@Override
	public SysSource querySourceByName(String name) {
		String sql="from SysSource where name=?";
		Query q=getSession().createQuery(sql);
		q.setParameter(0, name);
		return (SysSource)q.uniqueResult();
	}

	
}
